package org;

import org.swing.JModalInternalFrame;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: babitsky.viacheslav
 * Date: 17.01.2008
 * Time: 11:01:55
 */
public interface MenuTreeItem {

    /**
     * Menue ID, need for build menu tree
     * @return MenuItem ID
     */
    public Integer getID();

    /**
     * Parent menue ID
     * @return MenuItem ID, if null - no parent
     */
    public Integer getOwnerID();
    /**
     * Returns the class, which opening with MenuItem.
     * @return class extends JModalInternalFrame
     */
    public Class<? extends JModalInternalFrame> getFrameClass();
    /**
     * Returns the MenuItem's text.
     * @return the MenuItem text
     */
    public String getMenuItemName();
    /**
     * Returns the icon.
     * @return the <code>Icon</code>
     */
    public Icon getMenuItemIcon();
    /**
     * Returns the <code>KeyStroke</code> which serves as an accelerator 
     * for the menu item.
     * @return a <code>KeyStroke</code> object identifying the
     *		accelerator key
     */
    public KeyStroke getAccelerator();
}
